package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName RUNTONG_ACCREDITATION_TYPE
 */
@TableName(value ="RUNTONG_ACCREDITATION_TYPE")
@Data
public class RTAccreditationTypeDO {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private String code;

    /**
     * 
     */
    private String ctype;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private String createpersonid;

    /**
     * 
     */
    private String createtime;

    /**
     * 
     */
    private String updatepersonid;

    /**
     * 
     */
    private String updatetime;

    /**
     * 
     */
    private String updatenumber;

    /**
     * 
     */
    private String state;

    /**
     * 
     */
    private String frozentime;

    /**
     * 
     */
    private String valid;

    /**
     * 
     */
    private String 国家;

    /**
     * 
     */
    private String bz;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RTAccreditationTypeDO other = (RTAccreditationTypeDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getCtype() == null ? other.getCtype() == null : this.getCtype().equals(other.getCtype()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreatepersonid() == null ? other.getCreatepersonid() == null : this.getCreatepersonid().equals(other.getCreatepersonid()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUpdatepersonid() == null ? other.getUpdatepersonid() == null : this.getUpdatepersonid().equals(other.getUpdatepersonid()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getUpdatenumber() == null ? other.getUpdatenumber() == null : this.getUpdatenumber().equals(other.getUpdatenumber()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getFrozentime() == null ? other.getFrozentime() == null : this.getFrozentime().equals(other.getFrozentime()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.get国家() == null ? other.get国家() == null : this.get国家().equals(other.get国家()))
            && (this.getBz() == null ? other.getBz() == null : this.getBz().equals(other.getBz()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getCtype() == null) ? 0 : getCtype().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreatepersonid() == null) ? 0 : getCreatepersonid().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUpdatepersonid() == null) ? 0 : getUpdatepersonid().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getUpdatenumber() == null) ? 0 : getUpdatenumber().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getFrozentime() == null) ? 0 : getFrozentime().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((get国家() == null) ? 0 : get国家().hashCode());
        result = prime * result + ((getBz() == null) ? 0 : getBz().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", ctype=").append(ctype);
        sb.append(", remark=").append(remark);
        sb.append(", createpersonid=").append(createpersonid);
        sb.append(", createtime=").append(createtime);
        sb.append(", updatepersonid=").append(updatepersonid);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", updatenumber=").append(updatenumber);
        sb.append(", state=").append(state);
        sb.append(", frozentime=").append(frozentime);
        sb.append(", valid=").append(valid);
        sb.append(", 国家=").append(国家);
        sb.append(", bz=").append(bz);
        sb.append("]");
        return sb.toString();
    }
}